Repository navigation
Reference
Written against v0.2.0.
What the package provides. It has no settings, tags, commands or permissions of its own; the classes below are for other add-ons and the site to call.
| Item | Value | Effect |
|---|---|---|
| Package name | uams-web/aether-shared |
The name Composer requires. |
| Namespace |
UAMSWeb\Aether\Shared, mapped to src/
|
Where the shared classes live. |
| Service provider | UAMSWeb\Aether\Shared\ServiceProvider |
Registered by discovery through extra.laravel.providers. It registers the Control Panel build and nothing else. |
| Control Panel build |
resources/js/cp.js and resources/css/cp.css, built into resources/dist
|
Loaded in the Control Panel. The built files are committed, because a Composer install does not run npm. |
Since v0.2.0. Each class keeps the behavior it had in the site it was moved from.
| Class | Use |
|---|---|
UAMSWeb\Aether\Shared\Tags\TagParam |
all() returns tag parameters as a plain array, and get() reads one parameter by key, for both arrays and Statamic Parameters objects. |
UAMSWeb\Aether\Shared\Modifiers\WhitespaceDelimitedWordMetrics |
Word counts and reading time that split on whitespace only. |
UAMSWeb\Aether\Shared\Contracts\DepartmentHubOrganizationLookup |
Returns the organizations entry a site's department hub maps to, or null when the site is not a hub. Unbound, the site is treated as not a hub. |
UAMSWeb\Aether\Shared\Contracts\DepartmentHubPeopleLookup |
Optional. Returns a hub organization's people. Unbound, a tag yields no people and shows no people zone. |
UAMSWeb\Aether\Shared\Assets\AugmentedAssetHook |
Builds and registers the augmented pipeline hooks for a container-specific class and for the credit fallback. |
UAMSWeb\Aether\Shared\Assets\GenericAugmentedAssetWithCredit |
The fallback augmented asset that adds credit_text and the IPTC digital source keys. |
UAMSWeb\Aether\Shared\Assets\Contracts\ProvidesComputedCreditText |
Marks an augmented asset class as credit-aware, so the fallback leaves it alone. |
UAMSWeb\Aether\Shared\Assets\Concerns\ComputesAssetCreditText and ComputesAssetIptcDigitalSourceValues
|
The traits that compute credit_text and the digital source value and schema keys. |
UAMSWeb\Aether\Shared\Assets\CreditTextResolver |
Joins an asset's creator and organization into a credit line. |
UAMSWeb\Aether\Shared\Iptc\IptcDigitalSourceValueResolver |
Resolves the IPTC digital source type key and its schema.org URL from a group payload or an entry. |
The package merges config/aether-shared.php into the application's configuration under the handle aether-shared. The file returns an empty array, so there is nothing to set. To copy it into the application's config/ directory anyway:
php artisan vendor:publish --tag=aether-shared-configEach setting a later release adds will be listed on this page with its values, default and effect.
Home | Walkthrough | Guides | Troubleshooting | Reference | README | Repository
Written against v0.2.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
Troubleshooting
Reference
Project