Editor

Defines an Editor annotation object. Plugin Namespace: Plugin\Editor Text editor plugin implementations need to define a plugin definition array through annotation. These definition arrays may be altered through hook_editor_info_alter(). The definition includes the following keys: id: The unique, system-wide identifier of the text editor. Typically named the same as the editor library. label: The human-readable name of the text editor, translated. supports_content_filtering: Whether the edit

EditForm::getFormId

public EditForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/path/src/Form/EditForm.php, line 16 Class EditForm Provides the path edit form. Namespace Drupal\path\Form Code public function getFormId() { return 'path_admin_edit'; }

EditForm::buildPath

protected EditForm::buildPath($pid) Builds the path used by the form. Parameters int|null $pid: Either the unique path ID, or NULL if a new one is being created. Overrides PathFormBase::buildPath File core/modules/path/src/Form/EditForm.php, line 23 Class EditForm Provides the path edit form. Namespace Drupal\path\Form Code protected function buildPath($pid) { return $this->aliasStorage->load(array('pid' => $pid)); }

EditForm::buildForm

public EditForm::buildForm(array $form, FormStateInterface $form_state, $pid = NULL) Form constructor. 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 form structure. Overrides PathFormBase::buildForm File core/modules/path/src/Form/EditForm.php, line 30 Class EditForm Provides the path edit form. Namespace Drupal\path\Form Code public function bu

EditForm

Provides the path edit form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\path\Form\PathFormBaseclass \Drupal\path\Form\EditForm File core/modules/path/src/Form/EditForm.php, line 11 Namespace Drupal\path\Form Members Name Modifiers Type Description DependencySerializati

EditEntityFieldAccessCheckInterface::accessEditEntityField

public EditEntityFieldAccessCheckInterface::accessEditEntityField(EntityInterface $entity, $field_name) Checks access to edit the requested field of the requested entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity. string $field_name: The field name. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php, line 23 Class EditEntityFieldAccessCheckInterface Access check

EditEntityFieldAccessCheckInterface

Access check for editing entity fields. Hierarchy interface \Drupal\quickedit\Access\EditEntityFieldAccessCheckInterface File core/modules/quickedit/src/Access/EditEntityFieldAccessCheckInterface.php, line 10 Namespace Drupal\quickedit\Access Members Name Modifiers Type Description EditEntityFieldAccessCheckInterface::accessEditEntityField public function Checks access to edit the requested field of the requested entity.

EditEntityFieldAccessCheck::validateRequestAttributes

protected EditEntityFieldAccessCheck::validateRequestAttributes(EntityInterface $entity, $field_name, $langcode) Validates request attributes. File core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php, line 50 Class EditEntityFieldAccessCheck Access check for editing entity fields. Namespace Drupal\quickedit\Access Code protected function validateRequestAttributes(EntityInterface $entity, $field_name, $langcode) { // Validate the field name and language. if (!$field_nam

EditEntityFieldAccessCheck::accessEditEntityField

public EditEntityFieldAccessCheck::accessEditEntityField(EntityInterface $entity, $field_name) Checks access to edit the requested field of the requested entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity. string $field_name: The field name. Return value \Drupal\Core\Access\AccessResultInterface The access result. Overrides EditEntityFieldAccessCheckInterface::accessEditEntityField File core/modules/quickedit/src/Access/EditEntityFieldAccessCheck.php, line 43 Class

EditEntityFieldAccessCheck::access

public EditEntityFieldAccessCheck::access(EntityInterface $entity, $field_name, $langcode, AccountInterface $account) Checks Quick Edit access to the field. @todo Use the $account argument: https://www.drupal.org/node/2266809. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity containing the field. string $field_name: The field name. string $langcode: The langcode. \Drupal\Core\Session\AccountInterface $account: The currently logged in account. Return value \Drupal\Core\Access