BaseFieldOverride::preSave

public BaseFieldOverride::preSave(EntityStorageInterface $storage) Throws \Drupal\Core\Field\FieldException If the bundle is being changed. Overrides ConfigEntityBase::preSave File core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php, line 163 Class BaseFieldOverride Defines the base field override entity. Namespace Drupal\Core\Field\Entity Code public function preSave(EntityStorageInterface $storage) { // Filter out unknown settings and make sure all settings are present, so /

hook_theme_suggestions_alter

hook_theme_suggestions_alter(array &$suggestions, array $variables, $hook) Alters named suggestions for all theme hooks. This hook is invoked for all theme hooks, if you are targeting a specific theme hook it's best to use hook_theme_suggestions_HOOK_alter(). The call order is as follows: all existing suggestion alter functions are called for module A, then all for module B, etc., followed by all for any base theme(s), and finally for the active theme. The order is determined by system weig

AccessResultForbidden::$reason

The reason why access is forbidden. For use in error messages. Type: string|null File core/lib/Drupal/Core/Access/AccessResultForbidden.php, line 15 Class AccessResultForbidden Value object indicating a forbidden access result, with cacheability metadata. Namespace Drupal\Core\Access Code protected $reason;

ContentEntityForm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface Overrides EntityForm::$entityManager File core/lib/Drupal/Core/Entity/ContentEntityForm.php, line 22 Class ContentEntityForm Entity form variant for content entity types. Namespace Drupal\Core\Entity Code protected $entityManager;

hook_language_negotiation_info_alter

hook_language_negotiation_info_alter(array &$negotiation_info) Perform alterations on language negotiation methods. Parameters array $negotiation_info: Array of language negotiation method definitions. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/language/language.api.php, line 74 Hooks provided by the Language module. Code function hook_language_negotiation_info_alter(array &$negotiation_info) { if (isset($negotiation_info['cust

QuickEditController::$editorSelector

The in-place editor selector. Type: \Drupal\quickedit\EditorSelectorInterface File core/modules/quickedit/src/QuickEditController.php, line 44 Class QuickEditController Returns responses for Quick Edit module routes. Namespace Drupal\quickedit Code protected $editorSelector;

DataDefinition::setComputed

public DataDefinition::setComputed($computed) Sets whether the data is computed. Parameters bool $computed: Whether the data is computed. Return value static The object itself for chaining. File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 159 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedData Code public function setComputed($computed) { $this->definition['computed'] = $computed; return

SqlContentEntityStorageSchema::checkEntityType

protected SqlContentEntityStorageSchema::checkEntityType(EntityTypeInterface $entity_type) Checks that we are dealing with the correct entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type to be checked. Return value bool TRUE if the entity type matches the current one. Throws \Drupal\Core\Entity\EntityStorageException File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 463 Class SqlContentEntityStorageSchema Defines a sch

EntityTypeInfo::__construct

public EntityTypeInfo::__construct(TranslationInterface $translation, ModerationInformationInterface $moderation_information, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) EntityTypeInfo constructor. Parameters \Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service. for form alters. \Drupal\content_moderation\ModerationInformationInterface $moderation_information: The moderation information service. \Drupal\Core\Entity\Entit

ForumController::$fieldMap

Field map of existing fields on the site. Type: array File core/modules/forum/src/Controller/ForumController.php, line 57 Class ForumController Controller routines for forum routes. Namespace Drupal\forum\Controller Code protected $fieldMap;