FormElementHelper

Provides common functionality for form elements. Hierarchy class \Drupal\Core\Form\FormElementHelper File core/lib/Drupal/Core/Form/FormElementHelper.php, line 10 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormElementHelper::getElementByName public static function Retrieves a form element. FormElementHelper::getElementTitle public static function Returns the title for the element.

ViewsRelationship

Defines a Plugin annotation object for views relationship handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsRelationship See also \Drupal\views\Plugin\views\relationship\RelationshipPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views relationship handlers

Select::getTables

public &Select::getTables() Returns a reference to the tables array for this query. Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding tables, however, the use of the join() methods is preferred. Note that this method must be called by reference as well: $fields =& $query->getTables(); Return value A reference to the tables array structure. Overrides SelectInterface::getTables File core/lib/Drupal/Core/Data

Connection::query

public Connection::query($query, array $args = array(), $options = array()) Executes a query string against the database. This method provides a central handler for the actual execution of every query. All queries executed by Drupal are executed as PDO prepared statements. Parameters string|\Drupal\Core\Database\StatementInterface $query: The query to execute. In most cases this will be a string containing an SQL query with placeholders. An already-prepared instance of StatementInterface may a

ElementInterface::create

public static ElementInterface::create(TypedDataInterface $schema) Creates a form element instance from a schema definition. Parameters \Drupal\Core\TypedData\TypedDataInterface $schema: The configuration schema. Return value static File core/modules/config_translation/src/FormElement/ElementInterface.php, line 23 Class ElementInterface Provides an interface for configuration translation form elements. Namespace Drupal\config_translation\FormElement Code public static function create

Insert::__toString

public Insert::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Insert::__toString File core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php, line 124 Class Insert PostgreSQL implementation of \Drupal\Core\Database\Query\Insert. Namespace Drupal\Core\Database\Driver\pgsql Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->

install_profile_modules

install_profile_modules(&$install_state) Installs required modules via a batch process. Parameters $install_state: An array of information about the current installation state. Return value The batch definition. File core/includes/install.core.inc, line 1472 API functions for installing Drupal. Code function install_profile_modules(&$install_state) { // We need to manually trigger the installation of core-provided entity types, // as those will not be handled by the module insta

PhpStreamWrapperInterface::mkdir

public PhpStreamWrapperInterface::mkdir($path, $mode, $options) Return value bool File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 35 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function mkdir($path, $mode, $options);

QuickEditFieldForm::submitForm

public QuickEditFieldForm::submitForm(array &$form, FormStateInterface $form_state) Saves the entity with updated values for the edited field. Overrides FormInterface::submitForm File core/modules/quickedit/src/Form/QuickEditFieldForm.php, line 162 Class QuickEditFieldForm Builds and process a form for editing a single entity field. Namespace Drupal\quickedit\Form Code public function submitForm(array &$form, FormStateInterface $form_state) { $entity = $this->buildEntity(

ForumController::create

public static ForumController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service