tour_tour_update

tour_tour_update($entity) Implements hook_ENTITY_TYPE_update() for tour entities. File core/modules/tour/tour.module, line 111 Main functions of the module. Code function tour_tour_update($entity) { \Drupal::service('plugin.manager.tour.tip')->clearCachedDefinitions(); }

drupal_get_path

drupal_get_path($type, $name) Returns the path to a system item (module, theme, etc.). Parameters $type: The type of the item; one of 'core', 'profile', 'module', 'theme', or 'theme_engine'. $name: The name of the item for which the path is requested. Ignored for $type 'core'. Return value The path to the requested item or an empty string if the item is not found. File core/includes/bootstrap.inc, line 258 Functions that need to be loaded on every Drupal request. Code function drupal_get_pa

ban.install

Install, update and uninstall functions for the Ban module. File core/modules/ban/ban.install Functions Name Description ban_schema Implements hook_schema().

AccessResult::getCacheContexts

public AccessResult::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache ID.

ConfigTranslationFieldListBuilder::__construct

public ConfigTranslationFieldListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityManagerInterface $entity_manager) Constructs a new ConfigTranslationFieldListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. Overrides EntityListBuilde

ExportForm::submitForm

public ExportForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/locale/src/Form/ExportForm.php, line 126 Class ExportForm Form for the Gettext translation files export form. Namespace Drupal\locale\Form Code public function submit

UserAccessControlHandler::checkAccess

protected UserAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for wh

install_begin_request

install_begin_request($class_loader, &$install_state) Begins an installation request, modifying the installation state as needed. This function performs commands that must run at the beginning of every page request. It throws an exception if the installation should not proceed. Parameters $class_loader: The class loader. Normally Composer's ClassLoader, as included by the front controller, but may also be decorated; e.g., \Symfony\Component\ClassLoader\ApcClassLoader. $install_state: An ar

RoutePreloader::onAlterRoutes

public RoutePreloader::onAlterRoutes(RouteBuildEvent $event) Alters existing routes for a specific collection. Parameters \Drupal\Core\Routing\RouteBuildEvent $event: The route build event. File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 99 Class RoutePreloader Defines a class which preloads non-admin routes. Namespace Drupal\Core\Routing Code public function onAlterRoutes(RouteBuildEvent $event) { $collection = $event->getRouteCollection(); foreach ($collection->

FieldStorageDefinitionUpdateForbiddenException

Exception thrown when a storage definition update is forbidden. Hierarchy class \Drupal\Core\Entity\EntityStorageException extends \Exceptionclass \Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException File core/lib/Drupal/Core/Entity/Exception/FieldStorageDefinitionUpdateForbiddenException.php, line 10 Namespace Drupal\Core\Entity\Exception Members