X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fpath%2Fpath.module;fp=web%2Fcore%2Fmodules%2Fpath%2Fpath.module;h=03a563ec217d66950d80dff631ee921056863d7c;hp=38cb57beee2f7e6c2beecc346ef489d999eaf646;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/path/path.module b/web/core/modules/path/path.module index 38cb57bee..03a563ec2 100644 --- a/web/core/modules/path/path.module +++ b/web/core/modules/path/path.module @@ -8,7 +8,6 @@ use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; -use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Routing\RouteMatchInterface; /** @@ -37,28 +36,6 @@ function path_help($route_name, RouteMatchInterface $route_match) { } } -/** - * Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. - */ -function path_form_node_form_alter(&$form, FormStateInterface $form_state) { - $node = $form_state->getFormObject()->getEntity(); - $form['path_settings'] = [ - '#type' => 'details', - '#title' => t('URL path settings'), - '#open' => !empty($form['path']['widget'][0]['alias']['#value']), - '#group' => 'advanced', - '#access' => !empty($form['path']['#access']) && $node->hasField('path') && $node->get('path')->access('edit'), - '#attributes' => [ - 'class' => ['path-form'], - ], - '#attached' => [ - 'library' => ['path/drupal.path'], - ], - '#weight' => 30, - ]; - $form['path']['#group'] = 'path_settings'; -} - /** * Implements hook_entity_base_field_info(). */