Connection::sqlFunctionSubstring

public static Connection::sqlFunctionSubstring($string, $from, $length) SQLite compatibility implementation for the SUBSTRING() SQL function. File core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 243 Class Connection SQLite implementation of \Drupal\Core\Database\Connection. Namespace Drupal\Core\Database\Driver\sqlite Code public static function sqlFunctionSubstring($string, $from, $length) { return substr($string, $from - 1, $length); }

Tableselect::valueCallback

public static Tableselect::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value to

CommentManager::$authenticatedCanPostComments

Whether the \Drupal\user\RoleInterface::AUTHENTICATED_ID can post comments. Type: bool File core/modules/comment/src/CommentManager.php, line 46 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $authenticatedCanPostComments;

FormHelper::processStatesArray

protected static FormHelper::processStatesArray(array &$conditions, $search, $replace) Helper function for self::rewriteStatesSelector(). Parameters array $conditions: States conditions array. string $search: A partial or entire jQuery selector string to replace in #states. string $replace: The string to replace all instances of $search with. File core/lib/Drupal/Core/Form/FormHelper.php, line 47 Class FormHelper Provides helpers to operate on forms. Namespace Drupal\Core\Form Cod

DateHelper::hours

public static DateHelper::hours($format = 'H', $required = FALSE) Constructs an array of hours. Parameters string $format: (optional) A date format string that indicates the format to use for the hours. Defaults to 'H'. bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE. Return value array An array of hours in the selected format. File core/lib/Drupal/Core/Datetime/DateHelper.php, line 351 Class DateHelper Defines Gregorian Calendar date

PhpStorageFactory::get

static PhpStorageFactory::get($name) Instantiates a storage for generated PHP code. By default, this returns an instance of the \Drupal\Component\PhpStorage\MTimeProtectedFileStorage class. Classes implementing \Drupal\Component\PhpStorage\PhpStorageInterface can be registered for a specific bin or as a default implementation. Parameters string $name: The name for which the storage should be returned. Defaults to 'default' The name is also used as the storage bin if one is not specified in the

PhpStorageInterface::delete

public PhpStorageInterface::delete($name) Deletes PHP code from storage. Parameters string $name: The virtual file name. Can be a relative path. Return value bool TRUE if the delete succeeded, FALSE if it failed. File core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php, line 70 Class PhpStorageInterface Stores and loads PHP code. Namespace Drupal\Component\PhpStorage Code public function delete($name);

PhpStorageInterface::deleteAll

public PhpStorageInterface::deleteAll() Removes all files in this bin. File core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php, line 75 Class PhpStorageInterface Stores and loads PHP code. Namespace Drupal\Component\PhpStorage Code public function deleteAll();

FormRouteEnhancer

Enhancer to add a wrapping controller for _form routes. Hierarchy class \Drupal\Core\Routing\Enhancer\FormRouteEnhancer implements RouteEnhancerInterface File core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php, line 11 Namespace Drupal\Core\Routing\Enhancer Members Name Modifiers Type Description FormRouteEnhancer::applies public function Declares if the route enhancer applies to the given route. Overrides RouteEnhancerInterface::applies FormRouteEnhancer::enh

OverviewTerms::create

public static OverviewTerms::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 co