FormBase::validateForm

public FormBase::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::validateForm File core/lib/Drupal/Core/Form/FormBase.php, line 88 Class FormBase Provides a base class for forms. Namespace Drupal\Core\Form Code public function validateForm(array &$form, Fo

ViewExecutable::setArguments

public ViewExecutable::setArguments(array $args) Sets the arguments for the view. Parameters array $args: The arguments passed to the view. File core/modules/views/src/ViewExecutable.php, line 483 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function setArguments(array $args) { // The array keys of the arguments will be incorrect if set by // views_embed_view() or \Drupal\views\ViewExecutable:preview(). $this->args = array_values($args

FormState::setSubmitted

public FormState::setSubmitted() Sets that the form has been submitted. Return value $this Overrides FormStateInterface::setSubmitted File core/lib/Drupal/Core/Form/FormState.php, line 757 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setSubmitted() { $this->submitted = TRUE; return $this; }

Tasks::getFormOptions

public Tasks::getFormOptions(array $database) Return driver specific configuration options. Parameters $database: An array of driver specific configuration options. Return value The options form array. Overrides Tasks::getFormOptions File core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php, line 37 Class Tasks Specifies installation tasks for SQLite databases. Namespace Drupal\Core\Database\Driver\sqlite\Install Code public function getFormOptions(array $database) { $form

FilterFormat::$filters

Configured filters for this text format. An associative array of filters assigned to the text format, keyed by the instance ID of each filter and using the properties: id: The plugin ID of the filter plugin instance. provider: The name of the provider that owns the filter. status: (optional) A Boolean indicating whether the filter is enabled in the text format. Defaults to FALSE. weight: (optional) The weight of the filter in the text format. Defaults to 0. settings: (optional) An array of

ViewExecutable::initQuery

public ViewExecutable::initQuery() Initializes the query object for the view. Return value true Always returns TRUE. File core/modules/views/src/ViewExecutable.php, line 1153 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function initQuery() { if (!empty($this->query)) { $class = get_class($this->query); if ($class && $class != 'stdClass') { // return if query is already initialized. return TRUE; } }

UrlGenerator::getPathFromRoute

public UrlGenerator::getPathFromRoute($name, $parameters = array()) Gets the internal path (system path) for a route. Parameters string|\Symfony\Component\Routing\Route $name: The route name or a route object. array $parameters: An array of parameters as passed to \Symfony\Component\Routing\Generator\UrlGeneratorInterface::generate(). Return value string The internal Drupal path corresponding to the route. Overrides UrlGeneratorInterface::getPathFromRoute File core/lib/Drupal/Core/Routing/Url

UpdaterInterface::canUpdateDirectory

public static UpdaterInterface::canUpdateDirectory($directory) Determines if the Updater can handle the project provided in $directory. Parameters string $directory: Return value bool TRUE if the project is installed, FALSE if not. File core/lib/Drupal/Core/Updater/UpdaterInterface.php, line 56 Class UpdaterInterface Defines an interface for a class which can update a Drupal project. Namespace Drupal\Core\Updater Code public static function canUpdateDirectory($directory);

StringDatabaseStorage::delete

public StringDatabaseStorage::delete($string) Delete string from storage. Parameters \Drupal\locale\StringInterface $string: The string object. Return value \Drupal\locale\StringStorageInterface The called object. Throws \Drupal\locale\StringStorageException In case of failures, an exception is thrown. Overrides StringStorageInterface::delete File core/modules/locale/src/StringDatabaseStorage.php, line 187 Class StringDatabaseStorage Defines a class to store localized strings in the dat

db_update

db_update($table, array $options = array()) Returns a new UpdateQuery object for the active database. Parameters string $table: The table to update. array $options: An array of options to control how the query operates. Return value \Drupal\Core\Database\Query\Update A new Update object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call update() on it. For example, $in