heartbeatTypeService = $heartbeat_heartbeattype; $this->heartbeatStreamServices = $heartbeatstream; $this->heartbeatService = $heartbeat; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container, $plugin_id) { return new static( $plugin_id, $container->get('heartbeat.heartbeattype'), $container->get('heartbeatstream'), $container->get('heartbeat') ); } /** * {@inheritdoc} */ public function build() { $build = []; $build['heartbeat_block']['#markup'] = 'Implement HeartbeatBlock.'; return $build; } public function getDerivativeDefinitions($base_plugin_definition) { $def2 = parent::getDerivativeDefinitions($base_plugin_definition); return $base_plugin_definition; } }