Commit 385a52f2 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3282982 by jonathan1055: Fix entityFormIdsByType for type forms

parent ad055654
Loading
Loading
Loading
Loading
+6 −2
Changes for src/SchedulerPluginBase.php: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ abstract class SchedulerPluginBase extends PluginBase implements SchedulerPlugin
   * Get all the type/bundle objects for this entity.
   *
   * @return array
   *   The type/bundle objects.
   *   The type/bundle objects, keyed by type/bundle name.
   */
  public function getTypes() {
    $bundleDefinition = $this->entityTypeManager
@@ -234,7 +234,11 @@ abstract class SchedulerPluginBase extends PluginBase implements SchedulerPlugin
    $types = array_keys($this->getTypes());
    foreach ($types as $typeId) {
      foreach ($operations as $operation) {
        $form_id = $entityType . '_' . $typeId;
        $form_id = $entityType;
        // Do not add typeId for the entity type forms.
        if ($definition->hasKey('bundle')) {
          $form_id .= '_' . $typeId;
        }
        if ($operation != 'default') {
          $form_id .= '_' . $operation;
        }