PathController::__construct

public PathController::__construct(AliasStorageInterface $alias_storage, AliasManagerInterface $alias_manager) Constructs a new PathController. Parameters \Drupal\Core\Path\AliasStorageInterface $alias_storage: The path alias storage. \Drupal\Core\Path\AliasManagerInterface $alias_manager: The path alias manager. File core/modules/path/src/Controller/PathController.php, line 40 Class PathController Controller routines for path routes. Namespace Drupal\path\Controller Code public funct

FormStateDecoratorBase::getUserInput

public &FormStateDecoratorBase::getUserInput() Returns the form values as they were submitted by the user. These are raw and unvalidated, so should not be used without a thorough understanding of security implications. In almost all cases, code should use self::getValues() and self::getValue() exclusively. Return value array An associative array of values submitted to the form. Overrides FormStateInterface::getUserInput File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 496

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; }

FormSubmitterInterface::executeSubmitHandlers

public FormSubmitterInterface::executeSubmitHandlers(&$form, FormStateInterface &$form_state) Executes custom submission handlers for a given form. Button-specific handlers are checked first. If none exist, the function falls back to form-level handlers. Parameters $form: An associative array containing the structure of the form. $form_state: The current state of the form. If the user submitted the form by clicking a button with custom handler functions defined, those handlers will be

MimeTypeGuesser::registerWithSymfonyGuesser

public static MimeTypeGuesser::registerWithSymfonyGuesser(ContainerInterface $container) A helper function to register with Symfony's singleton MIME type guesser. Symfony's default mimetype guessers have dependencies on PHP's fileinfo extension or being able to run the system command file. Drupal's guesser does not have these dependencies. See also \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 119 Class Mim

FieldableEntityInterface::getTranslatableFields

public FieldableEntityInterface::getTranslatableFields($include_computed = TRUE) Gets an array of field item lists for translatable fields. Parameters bool $include_computed: If set to TRUE, computed fields are included. Defaults to TRUE. Return value \Drupal\Core\Field\FieldItemListInterface[] An array of field item lists implementing, keyed by field name. File core/lib/Drupal/Core/Entity/FieldableEntityInterface.php, line 192 Class FieldableEntityInterface Interface for entities having

Editor::setEditor

public Editor::setEditor($editor) Set the text editor plugin ID. Parameters string $editor: The text editor plugin ID to set. Overrides EditorInterface::setEditor File core/modules/editor/src/Entity/Editor.php, line 151 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code public function setEditor($editor) { $this->editor = $editor; return $this; }

ContentTranslationMetadataWrapperInterface::setPublished

public ContentTranslationMetadataWrapperInterface::setPublished($published) Sets the translation published status. The metadata field will be updated, only if it's translatable. Parameters bool $published: TRUE if the translation is published, FALSE otherwise. Return value $this File core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 89 Class ContentTranslationMetadataWrapperInterface Common interface for content translation metadata wrappers. Nam

File::setOwnerId

public File::setOwnerId($uid) Sets the entity owner's user ID. Parameters int $uid: The owner user id. Return value $this Overrides EntityOwnerInterface::setOwnerId File core/modules/file/src/Entity/File.php, line 129 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }

SqlContentEntityStorageSchema::addSharedTableFieldIndex

protected SqlContentEntityStorageSchema::addSharedTableFieldIndex(FieldStorageDefinitionInterface $storage_definition, &$schema, $not_null = FALSE, $size = NULL) Adds an index for the specified field to the given schema definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field for which an index should be added. array $schema: A reference to the schema array to be updated. bool $not_null: (optional) Whether to also ad