public static function CkeditorTemplates::postLoad in Ckeditor templates user interface 8
Acts on loaded entities.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
Overrides EntityBase::postLoad
File
- src/
Entity/ CkeditorTemplates.php, line 99
Class
- CkeditorTemplates
- Defines the ckeditor_template entity.
Namespace
Drupal\ckeditor_templates_ui\EntityCode
public static function postLoad(EntityStorageInterface $storage, array &$entities) {
parent::postLoad($storage, $entities);
// Sort the queried templates by their weight.
uasort($entities, 'static::sort');
}