taxonomy_taxonomy_term_delete

taxonomy_taxonomy_term_delete(Term $term) Implements hook_ENTITY_TYPE_delete() for taxonomy_term entities. Related topics Taxonomy indexing Functions to maintain taxonomy indexing. File core/modules/taxonomy/taxonomy.module, line 577 Enables the organization of content into categories. Code function taxonomy_taxonomy_term_delete(Term $term) { if (\Drupal::config('taxonomy.settings')->get('maintain_index_table')) { // Clean up the {taxonomy_index} table when terms are deleted. d

NodeTypeDeleteConfirm::__construct

public NodeTypeDeleteConfirm::__construct(QueryFactory $query_factory) Constructs a new NodeTypeDeleteConfirm object. Parameters \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query object. File core/modules/node/src/Form/NodeTypeDeleteConfirm.php, line 28 Class NodeTypeDeleteConfirm Provides a form for content type deletion. Namespace Drupal\node\Form Code public function __construct(QueryFactory $query_factory) { $this->queryFactory = $query_factory; }

Extension

Defines an extension (file) object. Hierarchy class \Drupal\Core\Extension\Extension implements \Serializable File core/lib/Drupal/Core/Extension/Extension.php, line 8 Namespace Drupal\Core\Extension Members Name Modifiers Type Description Extension::$filename protected property The filename of the main extension file (e.g., 'node.module'). Extension::$pathname protected property The relative pathname of the extension (e.g., 'core/modules/node/node.info.yml'). E

AllowToolbarPath::check

public AllowToolbarPath::check(Request $request) Determines whether delivery of a cached page should be attempted. Note that the request-policy check runs very early. In particular it is not possible to determine the logged in user. Also the current route match is not yet present when the check runs. Therefore, request-policy checks need to be designed in a way such that they do not depend on any other service and only take in account the information present on the incoming request. When matchi

file.field.inc

Field module functionality for the File module. File core/modules/file/file.field.inc Functions Name Description file_field_find_file_reference_column Determine whether a field references files stored in {file_managed}. template_preprocess_file_upload_help Prepares variables for file upload help text templates. template_preprocess_file_widget_multiple Prepares variables for multi file form widget templates.

ConfigNamesMapper::getLangcode

public ConfigNamesMapper::getLangcode() Returns the original language code of the configuration. Throws \RuntimeException Throws an exception if the language codes in the config files don't match. Overrides ConfigMapperInterface::getLangcode File core/modules/config_translation/src/ConfigNamesMapper.php, line 383 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code public function getLangcode() { $langcodes = array_map([$this, 'g

EntityStorageBase::doSave

abstract protected EntityStorageBase::doSave($id, EntityInterface $entity) Performs storage-specific saving of the entity. Parameters int|string $id: The original entity ID. \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value bool|int If the record insert or update failed, returns FALSE. If it succeeded, returns SAVED_NEW or SAVED_UPDATED, depending on the operation performed. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 452 Class EntityStorageBas

EditEntityFieldAccessCheckInterface::accessEditEntityField

public EditEntityFieldAccessCheckInterface::accessEditEntityField(EntityInterface $entity, $field_name) Checks access to edit the requested field of the requested entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity. string $field_name: The field name. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php, line 23 Class EditEntityFieldAccessCheckInterface Access check

ConfigImportValidateEventSubscriberBase::onConfigImporterValidate

abstract public ConfigImportValidateEventSubscriberBase::onConfigImporterValidate(ConfigImporterEvent $event) Checks that the configuration synchronization is valid. Parameters ConfigImporterEvent $event: The config import event. File core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php, line 20 Class ConfigImportValidateEventSubscriberBase Defines a base event listener implementation for config sync validation. Namespace Drupal\Core\Config Code abstract public func

EntityHandlerBase

Provides a base class for entity handlers. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTrait Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.0. Implement the container injection pattern of \Drupal\Core\Entity\EntityHandlerInterface::createInstance() to obtain the module handler service for your class. Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/l