SelectExtender::isNotNull

SelectExtender::isNotNull($field) Sets a condition that the specified field be NOT NULL. Parameters $field: The name of the field to check. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::isNotNull File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 451 Class SelectExtender The base extender class for Select queries. Namespace Drupal\Core\Database\Query Code function isNotNull($field) { $this->query->i

AccessArgumentsResolverFactory::getArgumentsResolver

public AccessArgumentsResolverFactory::getArgumentsResolver(RouteMatchInterface $route_match, AccountInterface $account, Request $request = NULL) Returns the arguments resolver to use when running access checks. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object to be checked. \Drupal\Core\Session\AccountInterface $account: The account being checked. \Symfony\Component\HttpFoundation\Request $request: Optional, the request object. Return value \Drupal\Com

CommandLineOrUnsafeMethod::isCli

protected CommandLineOrUnsafeMethod::isCli() Indicates whether this is a CLI request. File core/lib/Drupal/Core/PageCache/RequestPolicy/CommandLineOrUnsafeMethod.php, line 29 Class CommandLineOrUnsafeMethod Reject when running from the command line or when HTTP method is not safe. Namespace Drupal\Core\PageCache\RequestPolicy Code protected function isCli() { return PHP_SAPI === 'cli'; }

EntityType::set

public EntityType::set($property, $value) Sets a value to an arbitrary property. Parameters string $property: The property to use for the value. mixed $value: The value to set. Return value $this Overrides EntityTypeInterface::set File core/lib/Drupal/Core/Entity/EntityType.php, line 330 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function set($property, $value) { if (property_exists($this, $property)) {

FormBuilderInterface::rebuildForm

public FormBuilderInterface::rebuildForm($form_id, FormStateInterface &$form_state, $old_form = NULL) Constructs a new $form from the information in $form_state. This is the key function for making multi-step forms advance from step to step. It is called by self::processForm() when all user input processing, including calling validation and submission handlers, for the request is finished. If a validate or submit handler set $form_state->isRebuilding() to TRUE, and if other conditions do

ViewAjaxController::$currentPath

The current path. Type: \Drupal\Core\Path\CurrentPathStack File core/modules/views/src/Controller/ViewAjaxController.php, line 56 Class ViewAjaxController Defines a controller to load a view via AJAX. Namespace Drupal\views\Controller Code protected $currentPath;

EntityFormDisplayEditForm::getOverviewUrl

protected EntityFormDisplayEditForm::getOverviewUrl($mode) Returns the Url object for a specific entity (form) display edit form. Parameters string $mode: The form or view mode. Return value \Drupal\Core\Url A Url object for the overview route. Overrides EntityDisplayFormBase::getOverviewUrl File core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php, line 104 Class EntityFormDisplayEditForm Edit form for the EntityFormDisplay entity type. Namespace Drupal\field_ui\Form Code pr

TranslateFilterForm::submitForm

public TranslateFilterForm::submitForm(array &$form, FormStateInterface $form_state) Form submission 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::submitForm File core/modules/locale/src/Form/TranslateFilterForm.php, line 82 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drupal\locale\Form Code publi

StatementPrefetch::throwPDOException

protected StatementPrefetch::throwPDOException() Throw a PDO Exception based on the last PDO error. File core/lib/Drupal/Core/Database/StatementPrefetch.php, line 201 Class StatementPrefetch An implementation of StatementInterface that prefetches all data. Namespace Drupal\Core\Database Code protected function throwPDOException() { $error_info = $this->dbh->errorInfo(); // We rebuild a message formatted in the same way as PDO. $exception = new \PDOException("SQLSTATE[" . $e

OptimizedPhpArrayDumper::supportsMachineFormat

protected OptimizedPhpArrayDumper::supportsMachineFormat() Whether this supports the machine-optimized format or not. Return value bool TRUE if this supports machine-optimized format, FALSE otherwise. File core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php, line 513 Class OptimizedPhpArrayDumper OptimizedPhpArrayDumper dumps a service container as a serialized PHP array. Namespace Drupal\Component\DependencyInjection\Dumper Code protected function support