Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 741 /**
- 742 * Find the closest physical theme among ancestors and a theme itself
- 743 *
- 744 * @param MagentoFrameworkViewDesignThemeInterface $theme
- 745 * @return MagentoThemeModelTheme
- 746 * @throws MagentoFrameworkExceptionLocalizedException
- 747 */
- 748 protected function _getPhysicalTheme(MagentoFrameworkViewDesignThemeInterface $theme)
- 749 {
- 750 $result = $theme;
- 751 while ($result->getId() && !$result->isPhysical()) {
- 752 $result = $result->getParentTheme();
- 753 }
- 754 if (!$result) {
- 755 throw new MagentoFrameworkExceptionLocalizedException(
- 756 new MagentoFrameworkPhrase(
- 757 'Unable to find a physical ancestor for a theme '%1'.',
- 758 [$theme->getThemeTitle()]
- 759 )
- 760 );
- 761 }
- 762 return $result;
- 763 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement