MetadataGenerator::generateEntityMetadata

public MetadataGenerator::generateEntityMetadata(EntityInterface $entity) Generates in-place editing metadata for an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity, in the language in which one of its fields is being edited. Return value array An array containing metadata with the following keys: label: the user-visible label for the entity in the given language. Overrides MetadataGeneratorInterface::generateEntityMetadata File core/modules/quickedit/src/Metadat

user.install

Install, update and uninstall functions for the user module. File core/modules/user/user.install Functions Name Description user_install Implements hook_install(). user_schema Implements hook_schema(). user_update_8100 Fix invalid token in the status_blocked email body.

Container::getParameterAlternatives

protected Container::getParameterAlternatives($name) Provides alternatives in case a parameter was not found. Parameters string $name: The parameter to get alternatives for. Return value string[] An array of strings with suitable alternatives. File core/lib/Drupal/Component/DependencyInjection/Container.php, line 586 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code protected function getParameterAlternatives($name)

AccessResultInterface::isForbidden

public AccessResultInterface::isForbidden() Checks whether this access result indicates access is explicitly forbidden. This is a kill switch — both orIf() and andIf() will result in isForbidden() if either results are isForbidden(). Return value bool When TRUE then isAllowed() and isNeutral() are FALSE. File core/lib/Drupal/Core/Access/AccessResultInterface.php, line 40 Class AccessResultInterface Interface for access result value objects. Namespace Drupal\Core\Access Code public fun

MenuLinkContentInterface::getMenuName

public MenuLinkContentInterface::getMenuName() Gets the menu name of the custom menu link. Return value string The menu ID. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 40 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getMenuName();

entity_load_multiple_by_properties

entity_load_multiple_by_properties($entity_type, array $values) Load entities by their property values. \Drupal::entityTypeManager() ->getStorage($entity_type) ->loadByProperties($values); Parameters string $entity_type: The entity type to load, e.g. node or user. array $values: An associative array where the keys are the property names and the values are the values those properties must have. Return value array An array of entity objects indexed by their IDs. Returns an empty arra

MailHandler::$logger

Logger service. Type: \Drupal\Core\Logger\LoggerChannelInterface File core/modules/contact/src/MailHandler.php, line 32 Class MailHandler Provides a class for handling assembly and dispatch of contact mail messages. Namespace Drupal\contact Code protected $logger;

LanguageConfigFactoryOverrideInterface::getOverride

public LanguageConfigFactoryOverrideInterface::getOverride($langcode, $name) Get language override for given language and configuration name. Parameters string $langcode: Language code. string $name: Configuration name. Return value \Drupal\Core\Config\Config Configuration override object. File core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php, line 53 Class LanguageConfigFactoryOverrideInterface Defines the interface for a configuration factory language overrid

LanguageConfigFactoryOverrideInterface::getLanguage

public LanguageConfigFactoryOverrideInterface::getLanguage() Gets the language object used to override configuration data. Return value \Drupal\Core\Language\LanguageInterface The language object used to override configuration data. File core/modules/language/src/Config/LanguageConfigFactoryOverrideInterface.php, line 20 Class LanguageConfigFactoryOverrideInterface Defines the interface for a configuration factory language override object. Namespace Drupal\language\Config Code public

image_path_flush

image_path_flush($path) Clears cached versions of a specific file in all styles. Parameters $path: The Drupal file path to the original image. File core/modules/image/image.module, line 225 Exposes global functionality for creating image styles. Code function image_path_flush($path) { $styles = ImageStyle::loadMultiple(); foreach ($styles as $style) { $style->flush($path); } }