protected function Page::sortVariants in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Entity/Page.php \Drupal\page_manager\Entity\Page::sortVariants()
Sort variants.
2 calls to Page::sortVariants()
- Page::addVariant in src/
Entity/ Page.php - Adds a variant to this page.
- Page::getVariants in src/
Entity/ Page.php - Returns the variants available for the entity.
File
- src/
Entity/ Page.php, line 429
Class
- Page
- Defines a Page entity class.
Namespace
Drupal\page_manager\EntityCode
protected function sortVariants() {
if (isset($this->variants)) {
// Suppress errors because of https://bugs.php.net/bug.php?id=50688.
@uasort($this->variants, [
$this,
'variantSortHelper',
]);
}
}