class OrderBefore
Set this implementation to be before others.
Hierarchy
- class \Drupal\Core\Hook\Order\RelativeOrderBase implements \Drupal\Core\Hook\Order\OrderInterface
- class \Drupal\Core\Hook\Order\OrderBefore extends \Drupal\Core\Hook\Order\RelativeOrderBase
Expanded class hierarchy of OrderBefore
3 files declare their use of OrderBefore
- EntityOperations.php in core/
modules/ workspaces/ src/ Hook/ EntityOperations.php - LayoutBuilderTestHooks.php in core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Hook/ LayoutBuilderTestHooks.php - TestHookBefore.php in core/
modules/ system/ tests/ modules/ HookCollector/ bbb_hook_collector_test/ src/ Hook/ TestHookBefore.php
File
-
core/
lib/ Drupal/ Core/ Hook/ Order/ OrderBefore.php, line 10
Namespace
Drupal\Core\Hook\OrderView source
readonly class OrderBefore extends RelativeOrderBase {
/**
* {@inheritdoc}
*/
protected function isAfter() : bool {
return FALSE;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
OrderBefore::isAfter | protected | function | Specifies the ordering direction. | Overrides RelativeOrderBase::isAfter |
RelativeOrderBase::getOperation | public | function | Gets order operations specified by this object. | Overrides OrderInterface::getOperation |
RelativeOrderBase::__construct | public | function | Constructor. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.