function BlockCustom::query
Prepares query object to retrieve data from the source database.
This method should not be called directly. It is called automatically from SqlBase::prepareQuery().
Return value
\Drupal\Core\Database\Query\SelectInterface A Select query object with the source data.
Overrides SqlBase::query
File
-
core/
modules/ block_content/ src/ Plugin/ migrate/ source/ d7/ BlockCustom.php, line 25
Class
- BlockCustom
- Drupal 7 content block source from database.
Namespace
Drupal\block_content\Plugin\migrate\source\d7Code
public function query() {
return $this->select('block_custom', 'b')
->fields('b');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.