Skip to content

Commit

Permalink
Merge pull request #425 from dakorpar/fix-openinnewtab
Browse files Browse the repository at this point in the history
Make setOpenInNewTab fluent
  • Loading branch information
juniwalk committed Dec 7, 2016
2 parents ac3b1b0 + f784fcb commit cde2907
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Column/ColumnLink.php
Expand Up @@ -200,10 +200,10 @@ public function getTitle()
return $this->title;
}


/**
* Set attribute class
* @param string $class
* @return $this
*/
public function setClass($class)
{
Expand All @@ -212,7 +212,6 @@ public function setClass($class)
return $this;
}


/**
* Get attribute class
*/
Expand All @@ -232,14 +231,12 @@ public function isOpenInNewTab()

/**
* Set link to open in new tab/window or not
* @param boolean $open_in_new_tab
* @param bool $open_in_new_tab
* @return $this
*/
public function setOpenInNewTab($open_in_new_tab)
public function setOpenInNewTab($open_in_new_tab = TRUE)
{
$this->open_in_new_tab = $open_in_new_tab;
return $this;
}




}

0 comments on commit cde2907

Please sign in to comment.