ContentEntityBase::$langcodeKey

The language entity key. Type: string File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 79 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code protected $langcodeKey;

image_file_predelete

image_file_predelete(File $file) Implements hook_ENTITY_TYPE_predelete() for file entities. File core/modules/image/image.module, line 214 Exposes global functionality for creating image styles. Code function image_file_predelete(File $file) { // Delete any image derivatives of this image. image_path_flush($file->getFileUri()); }

StaticTranslation::getStringTranslation

public StaticTranslation::getStringTranslation($langcode, $string, $context) Retrieves English string to given language. Parameters string $langcode: Language code to translate to. string $string: The source string. string $context: The string context. Return value string|false Translated string if there is a translation, FALSE if not. Overrides TranslatorInterface::getStringTranslation File core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php, line 33 Class StaticTrans

FormatterBase

Base class for 'Field formatter' plugin implementations. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Field\PluginSettingsBase implements DependentPluginInterface, PluginSettingsInterfaceclass \Drupal\Core\Field\FormatterBase implements FormatterInterface Related topics Field Formatter API Define Field AP

ArchiverInterface::remove

public ArchiverInterface::remove($path) Removes the specified file from the archive. Parameters string $path: The file name relative to the root of the archive to remove. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. File core/lib/Drupal/Core/Archiver/ArchiverInterface.php, line 35 Class ArchiverInterface Defines the common interface for all Archiver classes. Namespace Drupal\Core\Archiver Code public function remove($path);

MenuLinkManagerInterface::resetDefinitions

public MenuLinkManagerInterface::resetDefinitions() Resets any local definition cache. Used for testing. File core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php, line 193 Class MenuLinkManagerInterface Defines an interface for managing menu links and storing their definitions. Namespace Drupal\Core\Menu Code public function resetDefinitions();

SelectionInterface::entityQueryAlter

public SelectionInterface::entityQueryAlter(SelectInterface $query) Allows the selection to alter the SelectQuery generated by EntityFieldQuery. Parameters \Drupal\Core\Database\Query\SelectInterface $query: A Select Query object. File core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php, line 49 Class SelectionInterface Interface definition for Entity Reference Selection plugins. Namespace Drupal\Core\Entity\EntityReferenceSelection Code public function entityQ

CsrfRequestHeaderAccessCheck::$csrfToken

The token generator. Type: \Drupal\Core\Access\CsrfTokenGenerator File core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php, line 32 Class CsrfRequestHeaderAccessCheck Access protection against CSRF attacks. Namespace Drupal\Core\Access Code protected $csrfToken;

ResettableStackedRouteMatchInterface::resetRouteMatch

public ResettableStackedRouteMatchInterface::resetRouteMatch() Resets the route match static cache. The route match should only be statically cached once routing is finished. Any code that uses a route match during routing may be incorrectly assumed to be acting after routing has completed. This method gives that code the ability to fix the static cache. File core/lib/Drupal/Core/Routing/ResettableStackedRouteMatchInterface.php, line 21 Class ResettableStackedRouteMatchInterface Defines an

ConfigImporterEvent::$configImporter

Configuration import object. Type: \Drupal\Core\Config\ConfigImporter File core/lib/Drupal/Core/Config/ConfigImporterEvent.php, line 13 Class ConfigImporterEvent Namespace Drupal\Core\Config Code protected $configImporter;