DrupalTranslator::processParameters

protected DrupalTranslator::processParameters(array $parameters) Processes the parameters array for use with t(). File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 72 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code protected function processParameters(array $parameters) { $return = array(); foreach ($parameters as $key => $value) { // We allow the values in the parameters to be safe string objec

NestedArray::unsetValue

public static NestedArray::unsetValue(array &$array, array $parents, &$key_existed = NULL) Unsets a value in a nested array with variable depth. This helper function should be used when the depth of the array element you are changing may vary (that is, the number of parent keys is variable). It is primarily used for form structures and renderable arrays. Example: // Assume you have a 'signature' element somewhere in a form. It might be: $form['signature_settings']['signature'] = array(

UpdateFetcherInterface::buildFetchUrl

public UpdateFetcherInterface::buildFetchUrl(array $project, $site_key = '') Generates the URL to fetch information about project updates. This figures out the right URL to use, based on the project's .info.yml file and the global defaults. Appends optional query arguments when the site is configured to report usage stats. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). string $site_key: (optional) The anonymous site key hash. Defau

Container::getParameterAlternatives

protected Container::getParameterAlternatives($name) Provides alternatives in case a parameter was not found. Parameters string $name: The parameter to get alternatives for. Return value string[] An array of strings with suitable alternatives. File core/lib/Drupal/Component/DependencyInjection/Container.php, line 586 Class Container Provides a container optimized for Drupal's needs. Namespace Drupal\Component\DependencyInjection Code protected function getParameterAlternatives($name)

NestedArray::mergeDeepArray

public static NestedArray::mergeDeepArray(array $arrays, $preserve_integer_keys = FALSE) Merges multiple arrays, recursively, and returns the merged array. This function is equivalent to NestedArray::mergeDeep(), except the input arrays are passed as a single array parameter rather than a variable parameter list. The following are equivalent: NestedArray::mergeDeep($a, $b); NestedArray::mergeDeepArray(array($a, $b)); The following are also equivalent: call_user_func_array('NestedArray::mer

QueryFactoryInterface::getAggregate

public QueryFactoryInterface::getAggregate(EntityTypeInterface $entity_type, $conjunction) Instantiates an aggregation query object for a given entity type. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. string $conjunction: AND: all of the conditions on the query need to match. OR: at least one of the conditions on the query need to match. Return value \Drupal\Core\Entity\Query\QueryAggregateInterface The query object that can query the given

SelectExtender::havingCompile

public SelectExtender::havingCompile(Connection $connection) Compiles the HAVING clause for later retrieval. Parameters $connection: The database connection for which to compile the clause. Overrides SelectInterface::havingCompile File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 177 Class SelectExtender The base extender class for Select queries. Namespace Drupal\Core\Database\Query Code public function havingCompile(Connection $connection) { return $this->query-

FormState::$programmed

If TRUE, the form was submitted programmatically, usually invoked via \Drupal\Core\Form\FormBuilderInterface::submitForm(). Defaults to FALSE. Type: bool File core/lib/Drupal/Core/Form/FormState.php, line 283 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $programmed = FALSE;

entity_load_multiple_by_properties

entity_load_multiple_by_properties($entity_type, array $values) Load entities by their property values. \Drupal::entityTypeManager() ->getStorage($entity_type) ->loadByProperties($values); Parameters string $entity_type: The entity type to load, e.g. node or user. array $values: An associative array where the keys are the property names and the values are the values those properties must have. Return value array An array of entity objects indexed by their IDs. Returns an empty arra

InfoParser

Parses extension .info.yml files. Hierarchy class \Drupal\Core\Extension\InfoParserDynamic implements InfoParserInterfaceclass \Drupal\Core\Extension\InfoParser File core/lib/Drupal/Core/Extension/InfoParser.php, line 8 Namespace Drupal\Core\Extension Members Name Modifiers Type Description InfoParser::$parsedInfos protected static property Array of all info keyed by filename. InfoParser::parse public function Parses Drupal module, theme and profile .info.yml fi