PermalinkManager
class PermalinkManager
Class PermalinkManager is injected as alligator.permalink.manager service. PermalinkManager handles the logic for managed entity.
Constants
| PERMALINK_SQL_STATE_ERROR |
Permalink exception code. Uses for validation in PermalinkManager::validateException($e) |
| PRODUCT_ENTITY |
|
| CATEGORY_ENTITY |
|
| BRAND_ENTITY |
|
| SUPPORTED_ENTITIES |
List of supported permalink entities |
Properties
| static array | $tableAndFields | List of supported fields in appropriate tables | |
| protected PermalinkEventContainer | $eventContainer |
Methods
bool
checkIfPermalinkIsAvailable(string $permalink, string|null $entityType = null, string|null $id = null)
Check if permalink already exists
bool|bool
findEntityByPermalink(string $permalink)
Find entity by permalink
static bool
Details
at line 88
__construct(PermalinkEventContainer $eventContainer)
at line 101
bool
checkIfPermalinkIsAvailable(string $permalink, string|null $entityType = null, string|null $id = null)
Check if permalink already exists
at line 126
bool|bool
findEntityByPermalink(string $permalink)
Find entity by permalink
at line 143
static bool
validateException(Exception $exception)
Validate exception, check is permalink exception