SourceString::isNew

public SourceString::isNew() Checks whether the object is not saved to storage yet. Return value bool TRUE if the object exists in the storage, FALSE otherwise. Overrides StringInterface::isNew File core/modules/locale/src/SourceString.php, line 45 Class SourceString Defines the locale source string object. Namespace Drupal\locale Code public function isNew() { return empty($this->lid); }

SourceString::getString

public SourceString::getString() Gets plain string contained in this object. Return value string The string contained in this object. Overrides StringInterface::getString File core/modules/locale/src/SourceString.php, line 30 Class SourceString Defines the locale source string object. Namespace Drupal\locale Code public function getString() { return isset($this->source) ? $this->source : ''; }

SourceString::isSource

public SourceString::isSource() Checks whether the object is a source string. Return value bool TRUE if the object is a source string, FALSE otherwise. Overrides StringInterface::isSource File core/modules/locale/src/SourceString.php, line 16 Class SourceString Defines the locale source string object. Namespace Drupal\locale Code public function isSource() { return isset($this->source); }

SourceString

Defines the locale source string object. This class represents a module-defined string value that is to be translated. This string must at least contain a 'source' field, which is the raw source value, and is assumed to be in English language. Hierarchy class \Drupal\locale\StringBase implements StringInterfaceclass \Drupal\locale\SourceString File core/modules/locale/src/SourceString.php, line 12 Namespace Drupal\locale Members Name Modifiers Type Description SourceString::g

SortArray::sortByWeightElement

public static SortArray::sortByWeightElement(array $a, array $b) Sorts a structured array by the 'weight' element. Note that the sorting is by the 'weight' array element, not by the render element property '#weight'. Callback for uasort(). Parameters array $a: First item for comparison. The compared items should be associative arrays that optionally include a 'weight' element. For items without a 'weight' element, a default value of 0 will be used. array $b: Second item for comparison. Return

SortArray::sortByWeightProperty

public static SortArray::sortByWeightProperty($a, $b) Sorts a structured array by '#weight' property. Callback for uasort(). Parameters array $a: First item for comparison. The compared items should be associative arrays that optionally include a '#weight' key. array $b: Second item for comparison. Return value int The comparison result for uasort(). File core/lib/Drupal/Component/Utility/SortArray.php, line 48 Class SortArray Provides generic array sorting helper methods. Namespace D

SortArray::sortByTitleElement

public static SortArray::sortByTitleElement($a, $b) Sorts a structured array by 'title' key (no # prefix). Callback for uasort(). Parameters array $a: First item for comparison. The compared items should be associative arrays that optionally include a 'title' key. array $b: Second item for comparison. Return value int The comparison result for uasort(). File core/lib/Drupal/Component/Utility/SortArray.php, line 66 Class SortArray Provides generic array sorting helper methods. Namespace

SortArray::sortByKeyString

public static SortArray::sortByKeyString($a, $b, $key) Sorts a string array item by an arbitrary key. Parameters array $a: First item for comparison. array $b: Second item for comparison. string $key: The key to use in the comparison. Return value int The comparison result for uasort(). File core/lib/Drupal/Component/Utility/SortArray.php, line 101 Class SortArray Provides generic array sorting helper methods. Namespace Drupal\Component\Utility Code public static function sortByKeySt

SortArray::sortByTitleProperty

public static SortArray::sortByTitleProperty($a, $b) Sorts a structured array by '#title' property. Callback for uasort(). Parameters array $a: First item for comparison. The compared items should be associative arrays that optionally include a '#title' key. array $b: Second item for comparison. Return value int The comparison result for uasort(). File core/lib/Drupal/Component/Utility/SortArray.php, line 84 Class SortArray Provides generic array sorting helper methods. Namespace Drup

SortArray::sortByKeyInt

public static SortArray::sortByKeyInt($a, $b, $key) Sorts an integer array item by an arbitrary key. Parameters array $a: First item for comparison. array $b: Second item for comparison. string $key: The key to use in the comparison. Return value int The comparison result for uasort(). File core/lib/Drupal/Component/Utility/SortArray.php, line 121 Class SortArray Provides generic array sorting helper methods. Namespace Drupal\Component\Utility Code public static function sortByKeyInt