Show bootsrap modal to delete specified resource.

@param string $title
@param string $body
@param string $link

@return string
357185
public function btDeleting($title, $body, $link)
    {
        $modal = new BootstrapDeleteConfirmationMessage();

        $modal = $this->modalDirector->build($title, 'Agree', $body, $link, $modal);

        return $modal->modalHead.$modal->modalBody.$modal->modalFooter;
    }
424650
public function getLinkHTML($field, $body = '', $classes = '', $id = '', $styles = '')
    {
        $link_attr = self::decodeLinkObject($this->get($field));
        return self::linkAttribsToHTMLString(
            $link_attr,
            $body,
            $classes,
            $id,
            $styles
        );
    }
1227549
public function mtEditText(Model $model, $link, $title)
    {
        $result = new AutoArray('');

        $modal = $this->modalDirector->build($title, 'Update', $result->getModelArray($model), $link, $this->MtModal);

        return $modal->modalHead.$modal->modalBody.$modal->modalFooter;
    }
1193505
public function deleteResourceLink($resourceLink)
    {

        $id = $resourceLink->getRecordId();

// Delete any outstanding share keys for resource links for this consumer
        $sql = "DELETE FROM {$this->dbTableNamePrefix}" . DataConnector::RESOURCE_LINK_SHARE_KEY_TABLE_NAME . ' ' .
               'WHERE (resource_link_pk = :id)';
        $query = $this->db->prepare($sql);
        $query->bindValue('id', $id, PDO::PARAM_INT);
        $ok = $query->execute();

// Delete users
        if ($ok) {
            $sql = "DELETE FROM {$this->dbTableNamePrefix}" . DataConnector::USER_RESULT_TABLE_NAME . ' ' .
                   'WHERE (resource_link_pk = :id)';
            $query = $this->db->prepare($sql);
            $query->bindValue('id', $id, PDO::PARAM_INT);
            $ok = $query->execute();
        }

// Update any resource links for which this is the primary resource link
        if ($ok) {
            $sql = "UPDATE {$this->dbTableNamePrefix}" . DataConnector::RESOURCE_LINK_TABLE_NAME . ' ' .
                   'SET primary_resource_link_pk = NULL ' .
                   'WHERE (primary_resource_link_pk = :id)';
            $query = $this->db->prepare($sql);
            $query->bindValue('id', $id, PDO::PARAM_INT);
            $ok = $query->execute();
        }

// Delete resource link
        if ($ok) {
            $sql = "DELETE FROM {$this->dbTableNamePrefix}" . DataConnector::RESOURCE_LINK_TABLE_NAME . ' ' .
                   'WHERE (resource_link_pk = :id)';
            $query = $this->db->prepare($sql);
            $query->bindValue('id', $id, PDO::PARAM_INT);
            $ok = $query->execute();
        }

        if ($ok) {
            $resourceLink->initialize();
        }

        return $ok;

    }
889246
protected function valueModal($title, $content, $buttonLabel=null)
	{
		$randomId = Yii::$app->security->generateRandomString();
		return Button::widget([
			'label'=>$buttonLabel !== null ? $buttonLabel : Yii::t('app', 'Show'),
			'options'=>[
				'class'=>'btn btn-xs btn-primary',
				'onclick'=>new JsExpression("$('#" . $randomId . "').modal()"),
			],
		]) . str_replace(
			['{id}', '{title}', '{content}'],
			[$randomId, $title, $content],
			$this->modalCode);
	}
1002303
public function addAction($title, $link, array $options = [])
    {
        if (is_array($link)) {
            if (!isset($link['p'])) {
                $link['p'] = P;
            }
            if (!isset($link['do'])) {
                $link['do'] = P_DO;
            }

            // Removed "_default" from main action if called from Main and is the beginning of string
            if (stripos($link['do'], '_default') === 0) {
                $link['do'] = str_replace('_default_', '', $link['do']);
            }

            $link = Linker::makeUrl($link);
        }

        $options['link'] = $link;
        $this->actions[$title] = $options;

        return $this;
    }
617071
public function mapLink($title, $mapOptions = [], $linkOptions = []) {
		return $this->Html->link($title, $this->mapUrl($mapOptions + ['escape' => false]), $linkOptions);
	}
1185500
private function setStyle($media, $style, $title)
    {
        $this->assets[$this->tag[$this->where]][strtolower(__FUNCTION__)][] = (string)
            static::$stylesheet.' '.$media.'
                    '.$title.' href="'.$this->getBaseUrl().$style.'" >'.PHP_EOL;
    }
763740
public function menuLinkDependency($title, $link, $translations, $destBid, $weight = 0, $menu = 'main') {
    $menu_link_content = $this->entityManager->getStorage('menu_link_content')->create([
      'title' => $title,
      'link' => ['uri' => 'internal:/node/' . $destBid[0]],
      'menu_name' => (!empty($translations)) ? $menu . '-fr' : $menu,
      'langcode' => (!empty($translations)) ? 'fr' : 'en',
      'parent' => $link,
      'weight' => $weight,
    ]);
    $menu_link_content->save();
    $this->database->update('menu_link_content_data')
      ->fields(['link__uri' => 'entity:node/' . $destBid[0]])
      ->condition('id', $menu_link_content->id())
      ->execute();
    return $menu_link_content;
  }
141572
public function staticMapLink($title, array $mapOptions = [], array $linkOptions = []) {
		return $this->Html->link($title, $this->staticMapUrl($mapOptions + ['escape' => false]), $linkOptions);
	}
389496
public function itHasATextSpanLinkedTo($text, $link)
    {
        $this->assertSession()->pageTextContains($text);
        Assertion::assertCount(
            1,
            $this->getXpath()->findXpath(sprintf('//a[@href="%s"]/span[text()="%s"]', $link, $text))
        );
    }
735293
public static function delete($title = null)
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $title   = (empty($title)) ? __d('core', 'Delete') : $title;

        $toolbar->appendButton('Core.action', $title, self::ACTION_DELETE, []);
    }
40374
public function postActionAllButton($title, $url, array $options = array())
    {
        $default_options = ['class'        => 'btn btn-default btn-xs action_all_btn',
                            'disabled'     => 'disabled',
                            'unlockFields' => ['checked_ids'],
                            'data-confirm' => null
                           ];

        if(isset($options['confirm'])){
            $options['data-confirm'] = $options['confirm'];
            unset($options['confirm']);
        }

        $options = array_merge($default_options, $options);

        $html = $this->postButton($title, $url, $options);

        return $html;
    }
923697
public static function create(string $title, string $link, string $description): self
    {
        return new self($title, $link, $description);
    }
1235170
public function setHome($title, $url=NULL) {
		
		$path			= new \stdClass();
		$path->title	= $title;
		$path->url		= $url;
		$path->active	= count($this->paths) > 1 ? FALSE : TRUE;
		
		$this->paths[0] = $path;
		
	}
247912
public static function linkAction($action, $title = null, $parameters = array(), $attributes = array())
    {
        $html = self::getInstance()->html;
        $args = func_get_args();
        return call_user_func_array(array($html, __FUNCTION__), $args);
    }
1293236
public function removeRoleByTitle(string $title)
    {

        $role = RoleModel::where('title', $title)->first();
        $this->removeRole($role->id);
    }