/**
  * @param \Magento\Framework\Event\Observer $observer
  * @return void
  */
 public function execute(\Magento\Framework\Event\Observer $observer)
 {
     if (!$this->moduleManager->isOutputEnabled('Magento_LayeredNavigation')) {
         return;
     }
     /** @var \Magento\Catalog\Block\Adminhtml\Product\Attribute\Grid $grid */
     $grid = $observer->getGrid();
     $grid->addColumnAfter('is_filterable', ['header' => __('Use in Layered Navigation'), 'sortable' => true, 'index' => 'is_filterable', 'type' => 'options', 'options' => ['1' => __('Filterable (with results)'), '2' => __('Filterable (no results)'), '0' => __('No')], 'align' => 'center'], 'is_searchable');
 }