Skip to content
Snippets Groups Projects
Commit dc7f4e13 authored by Joël Pittet's avatar Joël Pittet
Browse files

Replace RevisionableEntityBundleInterface with ConfigEntityInterface

parent b56f60c0
Branches 8.x-1.x
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@ declare(strict_types=1);
namespace Drupal\og_ui;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Entity\BundleEntityFormBase;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Entity\RevisionableEntityBundleInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\field\Entity\FieldConfig;
......@@ -221,10 +221,10 @@ class BundleEntityFormAlter {
* @param \Drupal\Core\Form\FormStateInterface $form_state
* A bundle entity form.
*
* @return \Drupal\Core\Entity\RevisionableEntityBundleInterface
* The bundle.
* @return \Drupal\Core\Config\Entity\ConfigEntityInterface
* The bundle config entity.
*/
protected static function getEntityBundle(FormStateInterface $form_state): RevisionableEntityBundleInterface {
protected static function getEntityBundle(FormStateInterface $form_state): ConfigEntityInterface {
return $form_state->getFormObject()->getEntity();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment