- Token name and options are now passed through parse() method
This commit is contained in:
1 parent
e9b2f0ece3
commit
b3a8e3aca2
29 files changed
+70
-59
No files matched your search
@@ -95,8 +95,7 @@ abstract class Context {
|
||||
|
||||
public function tokenOptions(string $token, bool $export = false) : array|string
|
||||
{
|
||||
$options = explode('.', strtolower($token));
|
||||
array_shift($options);
|
||||
$options = array_slice(explode('.', strtolower($token)), 1);
|
||||
|
||||
return $export ? var_export($options, true) : $options;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user