ViewUI::preSave

public ViewUI::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field translations automat

ConfigFormBase::__construct

public ConfigFormBase::__construct(ConfigFactoryInterface $config_factory) Constructs a \Drupal\system\ConfigFormBase object. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects. File core/lib/Drupal/Core/Form/ConfigFormBase.php, line 20 Class ConfigFormBase Base class for implementing system configuration forms. Namespace Drupal\Core\Form Code public function __construct(ConfigFactoryInterface $config_factory) { $this->set

ContentTranslationMetadataWrapper::setCreatedTime

public ContentTranslationMetadataWrapper::setCreatedTime($timestamp) Sets the translation creation timestamp. The metadata field will be updated, only if it's translatable. Parameters int $timestamp: The UNIX timestamp of when the translation was created. Return value $this Overrides ContentTranslationMetadataWrapperInterface::setCreatedTime File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 114 Class ContentTranslationMetadataWrapper Base class for con

MimeTypeGuesser::addGuesser

public MimeTypeGuesser::addGuesser(MimeTypeGuesserInterface $guesser, $priority = 0) Appends a MIME type guesser to the guessers chain. Parameters \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $guesser: The guesser to be appended. int $priority: The priority of the guesser being added. Return value $this File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 87 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths.

BackendChain::delete

public BackendChain::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInterface::delete See also \Drupal\Core\Cache\CacheBackendIn

TypeLinkManagerInterface::getTypeInternalIds

public TypeLinkManagerInterface::getTypeInternalIds($type_uri, $context = array()) Get a bundle's Typed Data IDs based on a URI. Parameters string $type_uri: The type URI. array $context: Context from the normalizer/serializer operation. Return value array | boolean If the URI matches a bundle, returns an array containing entity_type and bundle. Otherwise, returns false. File core/modules/rest/src/LinkManager/TypeLinkManagerInterface.php, line 38 Class TypeLinkManagerInterface Namespa

ConfigSingleImportForm::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/config/src/Form/ConfigSingleImportForm.php, line 36 Class ConfigSingleImportForm Provides a form for importing a single configuration file. Namespace Drupal\config\Form Code protected $entityManager;

MenuLinkDefaultForm::extractFormValues

public MenuLinkDefaultForm::extractFormValues(array &$form, FormStateInterface $form_state) Extracts a plugin definition from form values. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The new plugin definition values taken from the form values. The plugin ID must be returned as part of the definition. Overrides MenuLinkFormInterface::extractFormValues F

PermissionsHashGenerator::$privateKey

The private key service. Type: \Drupal\Core\PrivateKey File core/lib/Drupal/Core/Session/PermissionsHashGenerator.php, line 20 Class PermissionsHashGenerator Generates and caches the permissions hash for a user. Namespace Drupal\Core\Session Code protected $privateKey;

ImageStyleInterface::getName

public ImageStyleInterface::getName() Returns the image style. Return value string The name of the image style. File core/modules/image/src/ImageStyleInterface.php, line 32 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function getName();