use Drupal\search_api\Entity\Index;
$index = Index::load('node')
$server = $index->getServerInstance()
$backend = $server->getBackend()
$backend->getCluster()
$cluster_manager = \Drupal::service('elasticsearch_connector.cluster_manager')
use Drupal\Component\Utility\UrlHelper;
$include = 'eJx...';
explode(',',UrlHelper::uncompressQueryParameter($include));
In 7.x, themes were allowed to participate in any alter hook because the code that invoked theme alters lived in drupal_alter().
In 8.x, there has been a clear and distinct separation between ModuleHandler::alter
and ThemeManager::alter
. So now, in 8.x, themes can only participate in an alter hook if it is explicitly invoked for themes as well. An example of this can be seen in ElementInfoManager::buildInfo
:
$this->moduleHandler->alter('element_info', $info);
$this->themeManager->alter('element_info', $info);
As far as a "list" of what alter hooks themes are allowed to participate in... I really don't know of any. This base theme implements the majority/common alters hooks found in themes and you can see what it implements in bootstrap.theme. The only other suggestion I would have towards this subject is to see what code implements the module alter and see if there's a theme alter along with it.
Retrieve hosted zones with aws route53 list-hosted-zones
then enter the zone Id below:
aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv'