Skip to content

Commit

Permalink
Update pathauto settings machine name.
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiel committed Oct 27, 2023
1 parent 823ecce commit 0265c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/modules/custom/islandlives/islandlives.module
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use Drupal\pathauto\PathautoPatternInterface;
* Implements hook_pathauto_pattern_alter().
*/
function islandlives_pathauto_pattern_alter(PathautoPatternInterface $pattern, array $context) {
// Only act on the repo_item_content pattern.
if ($pattern->id() == 'repo_item_content') {
// Only act on the repository_items pattern.
if ($pattern->id() == 'repository_items') {
// If node has no PID...
$node = $context['data']['node'];
$pid = $node->get('field_pid')->value;
Expand Down

0 comments on commit 0265c34

Please sign in to comment.