FormStateInterface::has

public FormStateInterface::has($property) Determines if an arbitrary property is present. Parameters string $property: Properties are often stored as multi-dimensional associative arrays. If $property is a string, it will return isset($storage[$property]). If $property is an array, each element of the array will be used as a nested key. If $property = ['foo', 'bar'] it will return isset($storage['foo']['bar']). File core/lib/Drupal/Core/Form/FormStateInterface.php, line 220 Class FormState

SearchController::setAsDefault

public SearchController::setAsDefault(SearchPageInterface $search_page) Sets the search page as the default. Parameters \Drupal\search\SearchPageInterface $search_page: The search page entity. Return value \Symfony\Component\HttpFoundation\RedirectResponse A redirect to the search settings page. File core/modules/search/src/Controller/SearchController.php, line 229 Class SearchController Route controller for search. Namespace Drupal\search\Controller Code public function setAsDefault

QuickEditFieldForm::getFormId

public QuickEditFieldForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 84 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quickedit\Form Code public function getFormId() { return 'quickedit_field_form'; }

FieldConfigEditForm::save

public FieldConfigEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. 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 int Either SAVED_NEW or SAVED_UPDATED, depending on the o

FieldFilteredMarkup

Defines an object that passes safe strings through the Field system. This object filters the string using a very restrictive tag list when it is created. @internal This object is marked as internal because it should only be used by the Field module and field-related plugins. Hierarchy class \Drupal\Core\Field\FieldFilteredMarkup implements \Countable, MarkupInterface uses MarkupTrait See also \Drupal\Core\Render\Markup File core/lib/Drupal/Core/Field/FieldFilteredMarkup.php, line 22 Name

Schema::dropTable

public Schema::dropTable($table) Drop a table. Parameters $table: The table to be dropped. Return value TRUE if the table was successfully dropped, FALSE if there was no table by that name to begin with. Overrides Schema::dropTable File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 381 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code public function dropTable($table) { if (!$this->tableExists($table

File::getFilename

public File::getFilename() Returns the name of the file. This may differ from the basename of the URI if the file is renamed to avoid overwriting an existing file. Return value string Name of the file. Overrides FileInterface::getFilename File core/modules/file/src/Entity/File.php, line 43 Class File Defines the file entity class. Namespace Drupal\file\Entity Code public function getFilename() { return $this->get('filename')->value; }

ListDataDefinition::$itemDefinition

The data definition of a list item. Type: \Drupal\Core\TypedData\DataDefinitionInterface File core/lib/Drupal/Core/TypedData/ListDataDefinition.php, line 15 Class ListDataDefinition A typed data definition class for defining lists. Namespace Drupal\Core\TypedData Code protected $itemDefinition;

hook_js_alter

hook_js_alter(&$javascript, \Drupal\Core\Asset\AttachedAssetsInterface $assets) Perform necessary alterations to the JavaScript before it is presented on the page. Parameters $javascript: An array of all JavaScript being presented on the page. \Drupal\Core\Asset\AttachedAssetsInterface $assets: The assets attached to the current response. See also drupal_js_defaults() \Drupal\Core\Asset\AssetResolver Related topics Hooks Define functions that alter the behavior of Drupal core. File core

MessageInterface::setSubject

public MessageInterface::setSubject($subject) Sets the subject for the email. Parameters string $subject: The message subject. File core/modules/contact/src/MessageInterface.php, line 66 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setSubject($subject);